<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bootstrap_Supermarket</title>
    <link rel="stylesheet" href="./libs/jquery-3.4.1.min.js">
    <link rel="stylesheet" href="./libs/bootstrap_libs/css/bootstrap.min.css">
    <link rel="stylesheet" href="./libs/bootstrap_libs/fonts/glyphicons-halflings-regular.eot">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/utils.js"></script>
    <script src="./libs/jquery-3.4.1.min.js"></script>
    <script src="./libs/bootstrap_libs/js/bootstrap.js"></script>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"><i class="glyphicon glyphicon-th-list home_1"></i>Bootstrap_Supermarket</a>
          </div>
      
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
              <li class="active"><a href="#">首页 <span class="sr-only">(current)</span></a></li>
              <li><a href="./html/girls.html">生鲜区</a></li>
              <li><a href="#">水果区</a></li>
              <li><a href="#">电器区</a></li>
            </ul>
            
            <ul id="un-login" class="nav navbar-nav navbar-right ">
              <li><a href="#" data-toggle="modal" data-target="#LoginModal">登录</a></li>
              <li><a href="#" data-toggle="modal" data-target="#RegisterModal">注册</a></li>
            </ul>
            <ul id="is-login" class="nav navbar-nav navbar-right hide">
              <li><a href="#" data-toggle="modal">欢迎你，<b></b></a></li>
              <li><a href="javascript:;" data-toggle="modal" id="logout">退出登录</a></li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
      </nav>
        <div class="container">
        <!-- Button trigger modal -->
        <button type="button"  class="btn btn-primary btn-lg btn-sm btn_add" data-toggle="modal" data-target="#myModal" id="btn_add1">
            添加商品
        </button>
        <table class="table table table-striped table table-bordered table table-hover table table-condensed table-shop">
            <thead>
                <tr>
                    <th>id</th>
                    <th>商品名称</th>
                    <th>商品价格</th>
                    <th>商品数量</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="shop-tbody">
               <!--  <tr>
                    <td>1</td>
                    <td>赵四<input class="inputName" type="text"></td>
                    <td>12<input class="inputPrice" type="text"></td>
                    <td>12<input class="inputNum" type="text"></td>
                    <td >
                        <button class="btn btn-info btn-xs btn-edit">编辑</button>
                        <button class="btn btn-danger btn-xs btn-del">删除</button>
                        <button class="btn btn-success btn-xs btn-yes">确定</button>
                        <button class="btn btn-warning btn-xs btn-no">取消</button>
                    </td>
                </tr> -->
            </tbody>
          </table>
      </div>
  
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">商品名称</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputName" placeholder="请输入商品名称...">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">商品价格</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputPrice" placeholder="请输入商品价格...">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword4" class="col-sm-2 control-label">商品数量</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputNum" placeholder="请输入商品数量...">
                      </div>
                    </div>
                  </form>
            </div>
            <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary" id="btn-add">添加</button>
            </div>
        </div>
        </div>
    </div>
    <!-- register-Modal -->
<div class="modal fade" id="RegisterModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">注册页面</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="Register-name" placeholder="username">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label" >密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control" id="Register-pwd" placeholder="Password">
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="button" class="btn btn-default" id="Register">注册</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
  <!-- login-Modal -->
  <div class="modal fade" id="LoginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">登录页面</h4>
        </div>
        <div class="modal-body">
          <form class="form-horizontal">
            <div class="form-group">
              <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" id="Login-name" placeholder="username">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
              <div class="col-sm-10">
                <input type="password" class="form-control" id="Login-pwd" placeholder="Password">
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <div class="checkbox">
                  <label>
                    <input type="checkbox" id="Login-check"> 记住密码
                  </label>
                </div>
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-default" id="Login1">登录</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
    <script src="./js/index.js"></script>
    <script src="./js/edit.js"></script>
    <script src="./js/add.js"></script>
    <script src="./js/register.js"></script>
    <script src="./js/login.js"></script>
    <script src="./js/logincookie.js"></script>
</body>
</html>